package frame.laxcen.test;

import frame.laxcen.request.Request_0010_FF;
import tcpclient.v2.RFIDClient;

import java.io.IOException;
import java.net.InetSocketAddress;

public class RFIDClient_StopAll {

    public static void main(String[] args) throws IOException, InterruptedException {

        RFIDClient client = new RFIDClient(1 << 20, 1024);

        if(client.tryConnect(new InetSocketAddress("192.168.1.116", 9090), false)) {

            System.out.println("连接成功！");

            System.out.println("停止读写器一切操作！");

            if (client.trySend(new Request_0010_FF(), 1000)) {

                System.out.println("请求成功！");
            }

            if(client.tryClose()) System.out.println("停止连接！");
        }
    }
}
